package net.factoryOpen.quickfactory.manufacturing.del.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import net.factoryOpen.quickfactory.manufacturing.del.mapper.DelPerspectivityMapper;
import net.factoryOpen.quickfactory.manufacturing.del.domain.DelPerspectivity;
import net.factoryOpen.quickfactory.manufacturing.del.service.IDelPerspectivityService;

import net.factoryOpen.quickfactory.system.mapper.SysBillFrozenMapper;

/**
 * 订单透视表Service业务层处理
 * 
 * @author factoryOpen
 * @date 2024-07-23
 */
@Service
public class DelPerspectivityServiceImpl implements IDelPerspectivityService 
{
    @Autowired(required = false)
    private DelPerspectivityMapper delPerspectivityMapper;

    /**
     * 查询订单透视表
     * 
     * @param id 订单透视表主键
     * @return 订单透视表
     */
    @Override
    public DelPerspectivity selectDelPerspectivityById(Long id)
    {
        return delPerspectivityMapper.selectDelPerspectivityById(id);
    }

    /**
     * 查询订单透视表列表
     * 
     * @param delPerspectivity 订单透视表
     * @return 订单透视表
     */
    @Override
    public List<DelPerspectivity> selectDelPerspectivityList(DelPerspectivity delPerspectivity)
    {
        return delPerspectivityMapper.selectDelPerspectivityList(delPerspectivity);
    }

    /**
     * 新增订单透视表
     * 
     * @param delPerspectivity 订单透视表
     * @return 结果
     */
    @Override
    public int insertDelPerspectivity(DelPerspectivity delPerspectivity)
    {
        return delPerspectivityMapper.insertDelPerspectivity(delPerspectivity);
    }

    /**
     * 修改订单透视表
     * 
     * @param delPerspectivity 订单透视表
     * @return 结果
     */
    @Override
    public int updateDelPerspectivity(DelPerspectivity delPerspectivity)
    {
        return delPerspectivityMapper.updateDelPerspectivity(delPerspectivity);
    }

    /**
     * 批量删除订单透视表
     * 
     * @param ids 需要删除的订单透视表主键
     * @return 结果
     */
    @Override
    public int deleteDelPerspectivityByIds(Long[] ids)
    {
        return delPerspectivityMapper.deleteDelPerspectivityByIds(ids);
    }

    /**
     * 删除订单透视表信息
     * 
     * @param id 订单透视表主键
     * @return 结果
     */
    @Override
    public int deleteDelPerspectivityById(Long id)
    {
        return delPerspectivityMapper.deleteDelPerspectivityById(id);
    }

}
